Skip to content

fix(nextjs,remix,clerk-sdk-node,shared): Use isTruthy helper#2002

Merged
LekoArts merged 4 commits into
mainfrom
lekoarts/sdk-755-add-istruthy-helper-function
Nov 1, 2023
Merged

fix(nextjs,remix,clerk-sdk-node,shared): Use isTruthy helper#2002
LekoArts merged 4 commits into
mainfrom
lekoarts/sdk-755-add-istruthy-helper-function

Conversation

@LekoArts

@LekoArts LekoArts commented Nov 1, 2023

Copy link
Copy Markdown
Contributor

Description

Small QoL improvement to use an isTruthy helper for cases when we check if an env var is true. Could lead to subtle bugs if people not use the String "true" but something else that is truthy.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

@changeset-bot

changeset-bot Bot commented Nov 1, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a55122d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@clerk/nextjs Patch
@clerk/remix Patch
@clerk/clerk-sdk-node Patch
@clerk/shared Patch
gatsby-plugin-clerk Patch
@clerk/backend Patch
@clerk/clerk-js Patch
@clerk/clerk-expo Patch
@clerk/fastify Patch
@clerk/clerk-react Patch
@clerk/chrome-extension Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@LekoArts LekoArts changed the title fix(*): Use isTruthy helper fix(nextjs,remix,sdk-node-shared): Use isTruthy helper Nov 1, 2023
@LekoArts
LekoArts marked this pull request as ready for review November 1, 2023 13:26
@dimkl dimkl changed the title fix(nextjs,remix,sdk-node-shared): Use isTruthy helper fix(nextjs,remix,sdk-node,shared): Use isTruthy helper Nov 1, 2023
@dimkl dimkl changed the title fix(nextjs,remix,sdk-node,shared): Use isTruthy helper fix(nextjs,remix,clerk-sdk-node,shared): Use isTruthy helper Nov 1, 2023

@dimkl dimkl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Comment thread packages/shared/src/underscore.ts Outdated
@LekoArts
LekoArts enabled auto-merge November 1, 2023 13:40
@LekoArts
LekoArts added this pull request to the merge queue Nov 1, 2023
Merged via the queue into main with commit ef2325d Nov 1, 2023
@LekoArts
LekoArts deleted the lekoarts/sdk-755-add-istruthy-helper-function branch November 1, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants